package edu.suda.LoopCodePlus.service;

import edu.suda.LoopCodePlus.entity.Collections;

import java.util.List;

public interface CollectionService {
    //获取个人题目集
    public List<Collections> findCollectionById(Integer userId);
    //添加个人题目集
    public boolean addCollection(Collections collections);
    //更新个人题目集
    public boolean updateCollection(Collections collections);
    //根据题目集id查询题目集
    public Collections findCollectionById(Integer userId,Integer colId);
    //删除个人题目集
    public Integer deleteCollectionById(Integer userId,Integer colId);
    //找出所有公开题目集
    public List<Collections> findCollectionByStatus(Integer status);
    //根据colId查找题目
    public Collections findCollectionByColId(Integer colId);


}
